The Dreamweaver JavaScript API > History functions > dreamweaver.historyPalette.replaySteps()

 

dreamweaver.historyPalette.replaySteps()

Availability

Dreamweaver 3.0

Description

Replays the specified history steps in the active document. Dreamweaver warns the user of possible unintended consequences if the specified steps include an unrepeatable action.

Arguments

arrayOfIndices

arrayOfIndices is an array of position indices in the History panel.

Returns

A string containing the JavaScript that corresponds to the specified history steps.

Enabler

None.

Example

A call to dw.historyPalette.replaySteps([0,2,3]) plays the first, third, and fourth steps in the History panel.